package com.gzbsoft.sc.modules.sys.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.DocStore;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
@DocStore
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "jx_shop_template")
@DbComment("店铺模板表")
public class JxShopTemplate extends BaseEntity {
    @ManyToOne(fetch = FetchType.LAZY)
    @Column(name = "shop_id")
    @JsonIgnore
    private JxShop shop;
    @DbComment("轮播图")
    private String carousel;
    @DbComment("视频")
    private String video;
    @DbComment("背景图")
    private String bgImg;
    @DbComment("模版链接")
    private String link;
    @Override
    public String toString() {
        return "JxShopTemplate{" +
                "shop=" + shop +
                ", video='" + video + '\'' +
                ", bgImg='" + bgImg + '\'' +
                ", link='" + link + '\'' +
                ", id=" + id +
                '}';
    }
}
